package com.mall.business.service;

import java.math.BigDecimal;
import java.util.List;
import com.baomidou.mybatisplus.extension.service.IService;
import com.mall.business.domain.TWallet;

/**
 * 钱包明细Service接口
 *
 * @author ruoyi
 * @date 2025-03-31
 */
public interface ITWalletService  extends IService<TWallet>
{
    /**
     * 查询钱包明细
     *
     * @param id 钱包明细主键
     * @return 钱包明细
     */
    public TWallet selectTWalletById(String id);

    /**
     * 查询钱包明细列表
     *
     * @param tWallet 钱包明细
     * @return 钱包明细集合
     */
    public List<TWallet> selectTWalletList(TWallet tWallet);

    /**
     * 新增钱包明细
     *
     * @param tWallet 钱包明细
     * @return 结果
     */
    public int insertTWallet(TWallet tWallet);

    /**
     * 修改钱包明细
     *
     * @param tWallet 钱包明细
     * @return 结果
     */
    public int updateTWallet(TWallet tWallet);

    /**
     * 批量删除钱包明细
     *
     * @param ids 需要删除的钱包明细主键集合
     * @return 结果
     */
    public int deleteTWalletByIds(String[] ids);

    /**
     * 删除钱包明细信息
     *
     * @param id 钱包明细主键
     * @return 结果
     */
    public int deleteTWalletById(String id);


    public BigDecimal getTotalMoney();

    public BigDecimal  getTotalMoneyByUserId(String userId);

    public  void  saveDxMoney(String userId,BigDecimal money);
}
